package com.hxd.mall.injector.modules

import com.hxd.mall.injector.scope.ActivityScope
import com.hxd.mall.module.school.article.ArticleActivity
import com.hxd.mall.module.school.article.ArticlePresenter
import com.hxd.mall.module.school.article.IArticlePresenter
import com.hxd.mall.module.school.article.IArticleView
import dagger.Binds
import dagger.Module

/**
 * @author zhaoyong
 * @description:
 * @date :2019-10-15 14:02
 */
@Module
abstract class ArticleModule {
    @Binds
    internal abstract fun bindView(activity: ArticleActivity): IArticleView

    @ActivityScope
    @Binds
    abstract fun provideMainPresenter(presenter: ArticlePresenter): IArticlePresenter
}